how to update documents in collection